package com.edu.d5_extends;

public class Test1 {
    /**
     * 测试父类、子类继承
     */
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("猪八戒");
        student.setAge(100);
        student.writeInfo();
        Teacher teacher = new Teacher();
        teacher.setName("导员");
        teacher.setAge(10000);
        teacher.lookShe();
    }
}
